package com.xjoyt.pay.master.controllers;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.xjoyt.pay.controllers.AbstractController;
import com.xjoyt.pay.dto.PageParam;
import com.xjoyt.pay.dto.PageResult;
import com.xjoyt.pay.master.interfaces.DistributorOrderContract;
import com.xjoyt.pay.master.params.DistributorOrderGroupParam;
import com.xjoyt.pay.master.services.DistributorOrderService;
import com.xjoyt.pay.master.vo.DistributorOrderGroup;

@RestController
@RequestMapping("distributorOrder")
public class DistributorOrderController extends AbstractController implements DistributorOrderContract {

	@Autowired
	private DistributorOrderService service;

	@Override
	public PageResult<DistributorOrderGroup> loadPageGroup(@RequestBody PageParam<DistributorOrderGroupParam> params) {
		return service.loadPageGroup(params);
	}
}
